[IA64] sn2 - only get nasid from nodepda if sn_nodepda is available
authorawilliam@xenbuild2.aw <awilliam@xenbuild2.aw>
Tue, 19 Dec 2006 20:21:24 +0000 (13:21 -0700)
committerawilliam@xenbuild2.aw <awilliam@xenbuild2.aw>
Tue, 19 Dec 2006 20:21:24 +0000 (13:21 -0700)
fall back to getting nasid from sal cal if sn_nodepda is not yet available

Signed-off-by: Jes Sorensen <jes@sgi.com>
xen/arch/ia64/linux-xen/sn/kernel/sn2_smp.c

index ec7c45ef1e3c69fb57c4c9927d15f04bed1ab281..954a2f4bd83e1fa387e78e2c53101605e4813bbe 100644 (file)
@@ -438,6 +438,11 @@ void sn2_send_IPI(int cpuid, int vector, int delivery_mode, int redirect)
        int nasid;
 
        physid = cpu_physical_id(cpuid);
+#ifdef XEN
+       if (!sn_nodepda) {
+               ia64_sn_get_sapic_info(physid, &nasid, NULL, NULL);
+       } else
+#endif
        nasid = cpuid_to_nasid(cpuid);
 
        /* the following is used only when starting cpus at boot time */